package org.gdpu.service;

import org.gdpu.base.DAO;
import org.gdpu.base.PageView;
import org.gdpu.model.BloodOrder;
import org.gdpu.vo.BloodOrderVO;

import java.util.Date;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-11-7
 * Time: 上午9:15
 * To change this template use File | Settings | File Templates.
 */
public interface BloodOrderService extends DAO {
    /**
     * 查找所有申请记录
     *
     * @return 所有申请记录
     */
    public List<BloodOrder> allBloodOrder();

    public List<BloodOrder> allBloodOrderByDate(Date begin,Date end);

    /**
     * 查找未发血申请
     *
     * @return
     */
    public PageView<BloodOrder> findBloodOrder(BloodOrderVO bloodOrderVO);

    /**
     * 血液报废
     *
     * @param applyBloodIds 血液id
     * @param messages      报废信息
     */
    public void provide(int[] applyBloodIds, String[] messages);

    /**
     * 根据科室查找
     * @return
     */
    public List<BloodOrder> findBloodByOffice(String officeName);
}
